﻿using Microsoft.AspNetCore.Mvc;
using ServiceCore.Entity.Core;
using ServiceCore.Entity.Dto.Report;
using ServiceCore.Entity.Model;
using ServiceCore.Service;
using ServiceCore.WebApi.jwt;

namespace ServiceCore.WebApi.Controllers
{
    /// <summary>
    /// 标签
    /// </summary>
    [Route("Api/[controller]/[action]")]
    [ApiController]
    public class ReportController : ApiJwtController
    {
        private ReportService reportService = new ReportService();
        
        /// <summary>
        /// 标签合计 
        /// </summary>
        /// <arg name="arg"></arg>
        /// <returns></returns>
        [HttpPost]
        public BaseParam<RecordInfo, List<TagSumDto>> TagSum(BaseParam<RecordInfo, List<TagSumDto>> arg)
        {
            arg = reportService.Tag_Report(arg);

            return arg;
        }

    }
}
